from django.conf.urls.defaults import *
from django.views.generic.simple import redirect_to, direct_to_template
from tagging.views import tagged_object_list
from django.views.generic.list_detail import object_detail
from onm.onk.models import Page


urlpatterns = patterns('onm.onk.views',

	(r'^(?P<page_name>[^/]+)/edit/$', 'edit_page'),
	(r'^(?P<page_name>[^/]+)/$', 'view_page'),
	
	(r'^tag/(?P<tag>[^/]+(?u))/$', tagged_object_list,
	dict(model=Page, allow_empty=True, template_object_name='page')),

)